t = int(input())
for _ in range(t):
    n = int(input())
    a = list(map(int,input().split()))
    for i in range(1,len(a)):
        if sum(a[:i]) == sum(a[i:]):
            print("Yes")
            break 
    else:
        print("No")